<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户添加页面</title>
    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <script src="../static/js/bootstrap.min.js" th:src="@{/js/bootstrap.min.js}"></script>
    <script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
</head>
<body>

 <fieldset style="width:180px; margin:0px auto">
    <p>
    <h2>学生信息增加</h2>
    </p>
 </fieldset>

<form class="form-horizontal" th:action="@{/saveI}" th:object="${user}" method="post" style="width: 35%;margin:0px auto">
    <div class="form-group">
        <label for="id" class="col-sm-2 control-label">编号:</label>
        <div class="col-sm-10">
            <input type="number" class="form-control" th:field="*{id}" id="id" placeholder="请输入编号">
        </div>
    </div>
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">姓名:</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:field="*{name}" id="name" placeholder="请输入姓名">
        </div>
    </div>
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">姓别:</label>
        <div class="col-sm-10">
            <label class="radio-inline">
                <input type="radio" name="gender" th:field="*{gender}" id="boy" value="男" checked>男
            </label>
            <label class="radio-inline">
                <input type="radio" name="gender" th:field="*{gender}" id="gril" value="女">女
            </label>
        </div>
    </div>
    <div class="form-group">
        <label for="age" class="col-sm-2 control-label">年龄:</label>
        <div class="col-sm-10">
            <input type="number" class="form-control" th:field="*{age}" id="age" placeholder="请输入年龄">
        </div>
    </div>
    <div class="form-group">
        <label for="address" class="col-sm-2 control-label">地址:</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:field="*{address}" id="address" placeholder="请输入地址">
        </div>
    </div>
    <div class="form-group">
        <label for="qq" class="col-sm-2 control-label">QQ:</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:field="*{qq}" id="qq" placeholder="请输入QQ">
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="col-sm-2 control-label">邮箱:</label>
        <div class="col-sm-10">
            <input type="text" class="form-control input-sm" th:field="*{email}" id="email" placeholder="请输入邮箱">
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-info btn-lg btn-block">确定</button>
        </div>
    </div>


    <!--编号: <input type="number" name="id"><br>-->
    <!--姓名: <input type="text" id="name" name="name"><br>-->
    <!--性别: <input type="text" id="gender" name="gender"><br>-->
    <!--年龄: <input type="number" id="age" name="age"><br>-->
    <!--地址: <input type="text" id="address" name="address"><br>-->
    <!--QQ: <input type="text" id="qq" name="qq"><br>-->
    <!--邮箱: <input type="text" id="email" name="email"><br>-->
    <!--<input type="submit">-->
</form>
</body>
</html>